package cn.edu.sdjzu.xg.eagle.service;

import cn.edu.sdjzu.xg.eagle.entity.Student;
import cn.edu.sdjzu.xg.eagle.exception.BaseException;
import cn.edu.sdjzu.xg.eagle.util.Condition;

import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;

public interface StudentService {
    Student find(Long id)throws SQLException, BaseException, InvocationTargetException;

    boolean addStudent(Student student)throws SQLException, BaseException, InvocationTargetException;
    Student find(Condition condition,Long id)throws SQLException, BaseException, InvocationTargetException;
    boolean update(Student student)throws SQLException;
    boolean delete(Long id)throws SQLException,BaseException, InvocationTargetException;
}
